import http from "@/utils/request";

// 获取房东房屋租金信息
export const getRentInfo = async () => {
	return http.get<any>(`/contract/app/owner/get-rent-info`, {})
}

// 查询房东业主房间信息
export const getOwnerRoom = async (data:any) => {
	return http.get<any>(`/contract/app/owner/page-owner-room-info`, data)
}

//查询活动列表
export const getActList = async (data:any) => {
	return http.post<any>(`/member/activities/get-list`, data)
}

//获取报名状态分页列表
export const getActivity = async (data:any) => {
	return http.post<any>(`/member/activity-enroll/get-status-page`, data)
}

//新增活动报名
export const getActivityEnroll = async (data:any) => {
	return http.post<any>(`/member/activity-enroll/enroll`, data)
}

//判断是否可以报名
export const switchOrNot = async (id:number) => {
	return http.get<any>(`/member/activity-enroll/enroll-or-not/${id}`, {})
}

